package com.mytest.utils;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class BlackListMqDto implements Serializable {

    /**
     * 主键，无业务含义
     */
    private long id;

    /**
     * 黑名单名称
     */
    private String name;

    /**
     * 黑名单编码
     */
    private String code;

    /**
     * 租户
     */
    private String tenantId;

    /**
     * 产品线
     */
    private String productId;

    /**
     * 描述
     */
    private String desc;


    /**
     * 取值类型描述 通过字典配置
     */
    private String valueType;

    /**
     * 黑名单取值
     */
    private List<UserGroupDto> value;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 修改者
     */
    private String creator;


    private Long opUnitId;

    private Long opPosId;

    private Integer authType;

    private List<UserGroupDto> authValue;

    private String relationId;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getValueType() {
        return valueType;
    }

    public void setValueType(String valueType) {
        this.valueType = valueType;
    }

    public List<UserGroupDto> getValue() {
        return value;
    }

    public void setValue(List<UserGroupDto> value) {
        this.value = value;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Long getOpUnitId() {
        return opUnitId;
    }

    public void setOpUnitId(Long opUnitId) {
        this.opUnitId = opUnitId;
    }

    public Long getOpPosId() {
        return opPosId;
    }

    public void setOpPosId(Long opPosId) {
        this.opPosId = opPosId;
    }

    public Integer getAuthType() {
        return authType;
    }

    public void setAuthType(Integer authType) {
        this.authType = authType;
    }

    public List<UserGroupDto> getAuthValue() {
        return authValue;
    }

    public void setAuthValue(List<UserGroupDto> authValue) {
        this.authValue = authValue;
    }

    public String getRelationId() {
        return relationId;
    }

    public void setRelationId(String relationId) {
        this.relationId = relationId;
    }
}
